package com.esri.android.map.popup;

import android.view.View;
import android.view.ViewGroup;

/* loaded from: classes.dex */
public class PopupLayoutInfo implements PopupLayout {
    private ViewGroup a;
    private ViewGroup b;
    private ViewGroup c;
    private ViewGroup d;
    private View e;
    private View f;
    private View g;
    private View h;
    private PopupStyle i = new ArcGISPopupStyle();
    protected ViewGroup mLayout;

    @Override // com.esri.android.map.popup.PopupLayout
    public ViewGroup getLayout() {
        return this.mLayout;
    }

    public void setLayout(ViewGroup viewGroup) {
        this.mLayout = viewGroup;
    }

    public ViewGroup getTitleViewPlaceHolder() {
        return this.a;
    }

    public ViewGroup getAttributesViewPlaceHolder() {
        return this.b;
    }

    public ViewGroup getMediaViewPlaceHolder() {
        return this.c;
    }

    public ViewGroup getAttachmentsViewPlaceHolder() {
        return this.d;
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public View getAttachmentsView() {
        return this.e;
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public View getMediaView() {
        return this.f;
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public View getAttributesView() {
        return this.g;
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public View getTitleView() {
        return this.h;
    }

    public void setTitleViewPlaceHolder(ViewGroup viewGroup) {
        this.a = viewGroup;
    }

    public void setAttributesViewPlaceHolder(ViewGroup viewGroup) {
        this.b = viewGroup;
    }

    public void setMediaViewPlaceHolder(ViewGroup viewGroup) {
        this.c = viewGroup;
    }

    public void setAttachmentsViewPlaceHolder(ViewGroup viewGroup) {
        this.d = viewGroup;
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public void setAttachmentsView(View view) {
        this.e = view;
        ViewGroup viewGroup = this.d;
        if (viewGroup != null) {
            viewGroup.removeAllViews();
            this.d.addView(view);
        }
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public void setMediaView(View view) {
        this.f = view;
        ViewGroup viewGroup = this.c;
        if (viewGroup != null) {
            viewGroup.removeAllViews();
            this.c.addView(view);
        }
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public void setAttributesView(View view) {
        this.g = view;
        ViewGroup viewGroup = this.b;
        if (viewGroup != null) {
            viewGroup.removeAllViews();
            this.b.addView(view);
        }
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public void setTitleView(View view) {
        this.h = view;
        ViewGroup viewGroup = this.a;
        if (viewGroup != null) {
            viewGroup.removeAllViews();
            this.a.addView(view);
        }
    }

    @Override // com.esri.android.map.popup.PopupLayout
    public PopupStyle getStyle() {
        return this.i;
    }

    public void setStyle(PopupStyle popupStyle) {
        if (popupStyle == null) {
            popupStyle = new ArcGISPopupStyle();
        }
        this.i = popupStyle;
    }
}
